local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"

-- git clone --filter=blob:none --single-branch git@github.com:folke/lazy.nvim.git ~/.local/share/nvim/lazy/lazy.nvim
if not vim.loop.fs_stat(lazypath) then
    vim.fn.system({
        "git",
        "clone",
        "--filter=blob:none",
        "--single-branch",
        "git@github.com:folke/lazy.nvim.git",
        lazypath,
    })
end
vim.opt.runtimepath:prepend(lazypath)

-- require("lazy").setup("plugin_list", opts)
-- require("lazy").setup("plugins", opts)
-- require("lazy").setup("test", opts)

require("lazy").setup({
    spec = {
        { import = "plugins" },
        -- { import = "built-in-lsp" },
        { import = "coc" },
        -- { import = "blink" },
        -- { import = "unused" },
    },

    git = {
        -- url_format = "https://github.com/%s.git",
        url_format = "git@github.com:%s",
        url_format = "git@github.com:%s.git",
        -- url_format = "https://hub.fastgit.xyz/%s",
        -- url_format = "https://mirror.ghproxy.com/https://github.com/%s",
    },
})
